#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
	struct gameState *state = newGame();
	int *bonus = malloc(sizeof(int));
	int i;
	state->handCount[0] = 1;
	state->hand[0][0] = smithy;
	state->handCount[0] = 1;
        state->numPlayers = 2;
        state->whoseTurn = 0;
        state->numActions = 1;
        state->deckCount[0] = 10;
        state->discardCount[0] = 0;
        for(i = 0; i<10;i++){
                state->supplyCount[i] = i+7;
                state->deck[0][i] = i;
	}
	cardEffect(smithy,1,2,3,state,0,bonus);

	if(state->handCount[0] == 3){
		printf("Smithy PASSED\n");
	}
	else{
		printf("Smithy FAILED\n");
	}
	printf("%d\n", state->handCount[0]);
	//if(smithy == 13){printf("he's 13");}
	return 0;
}

